package com.tt.dp.command;

import com.tt.dp.command.model.Light;

public class LightOffCommand implements Command{

    private Light light;

    public LightOffCommand(Light light){
        this.light = light;
    }


    public void execute() {
        this.light.off();
    }

    public void undo() {
        this.light.on();
    }
}
